<template>
    <div>
        <p>购物车</p>
        
        <button @click="push">回到首页</button>
    </div>
</template>

<script>
    export default {
        methods:{
            push(){
                // this.$router.push('/shouye');
                // this.$router.push({path:'/shouye'});
                this.$router.push({name:'shouye'});

                // this.$router.replace('/shouye');
            }
        }
    }
</script>

<style lang="scss" scoped>

</style>